package org.chl.chapter02.controller;

import org.chl.chapter02.entity.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BookController {

	@Autowired
	private Book book;
	
	@GetMapping("book")
	public String book() {
		System.out.println(book);
		return book.toString();
	}
}
